-- GENERATED SPELL FOR [Honor Hold Archer] --


function spell0_16896(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(15547,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16896', 625, 1)
end

function spell1_16896(pUnit, Event) --@Shoot Bow,n/a--
pUnit:FullCastSpellOnTarget(29120,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16896', 658, 1)
end

function spell2_16896(pUnit, Event) --@Shoot Bow,n/a--
pUnit:FullCastSpellOnTarget(33796,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16896', 611, 1)
end

function Sorts_16896(pUnit, Event)
local choix_sorts_16896 = math.random(0, 2)
if choix_sorts_16896 == 0 then
pUnit:RegisterEvent('spell0_16896', 1, 1)
end
if choix_sorts_16896 == 1 then
pUnit:RegisterEvent('spell1_16896', 1, 1)
end
if choix_sorts_16896 == 2 then
pUnit:RegisterEvent('spell2_16896', 1, 1)
end
end

function mob16896_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16896', math.random(1500, 3000), 1)
end

function mob16896_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16896_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16896_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16896, 1, 'mob16896_Action')
RegisterUnitEvent(16896, 2, 'mob16896_Leave')
RegisterUnitEvent(16896, 3, 'mob16896_Kill')
RegisterUnitEvent(16896, 4, 'mob16896_Die')
